<template>
  <div class="downloadBar" @click="download">
  </div>
</template>
<script>
const sUserAgent = navigator.userAgent.toLowerCase()
export default{
  methods: {
    download(){
      if (sUserAgent.match(/android/i)) {
        window.location.href='http://a.app.qq.com/o/simple.jsp?pkgname=com.ztgame.bigbang.app.hey'
      }else{
        window.location.href='https://www.heiheiyuyin.com/downloads/'
      }
    }
  }
}
</script>
<style lang="scss" scoped>
  .downloadBar{
    position: relative;
    width: 7.5rem;
    height: 0.92rem;
    @include bg('./images/download-bg.png');
    background-size: 100% auto;
    z-index: 2;
  }
</style>
